package com.atguigu.gmall.user;

//import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;

//通用mapper第2个缺点：@MapperScan(basePackages = "com.atguigu.gmall.user.mapper")——在扫描包的时候扫描不到
//解决方法：配置启动类扫描器MapperScan，使用通用mapper的MapperScan,导包：import tk.mybatis.spring.annotation.MapperScan;
@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.gmall.user.mapper")
public class GmallUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(GmallUserApplication.class, args);
    }

}
